package cn.stylefeng.guns.sys.modular.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 微信消息推送
 * </p>
 *
 * @author gong
 * @since 2021-03-09
 */
@TableName("bty_wxmsg_push")
public class WxmsgPush implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 微信标识
     */
    @TableField("openid")
    private String openid;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 手机
     */
    @TableField("phone")
    private String phone;

    /**
     * 消息内容
     */
    @TableField("msg")
    private String msg;

    /**
     * 状态：0待发送，1已发送
     */
    @TableField("status")
    private Integer status;

    /**
     * 微信消息模板id
     */
    @TableField("template_id")
    private String templateId;

    /**
     * 跳转的url
     */
    @TableField("jump_url")
    private String jumpUrl;

    /**
     * 发送结果：1发送成功，0发送失败
     */
    @TableField("send_result")
    private Integer sendResult;

    /**
     * 业务类型：1工程
     */
    @TableField("business_type")
    private Integer businessType;

    /**
     * 业务id
     */
    @TableField("business_id")
    private Long businessId;
    /**
     * 业务功能id
     */
    @TableField("task_id")
    private Integer taskId;

    /**
     * 发送次数
     */
    @TableField("send_times")
    private Integer sendTimes;

    /**
     * 发送失败原因
     */
    @TableField("fail_msg")
    private String failMsg;

    /**
     * 计划推送时间
     */
    @TableField("plan_push_time")
    private Date planPushTime;

    /**
     * 实际发送时间
     */
    @TableField("real_push_time")
    private Date realPushTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getJumpUrl() {
        return jumpUrl;
    }

    public void setJumpUrl(String jumpUrl) {
        this.jumpUrl = jumpUrl;
    }

    public Integer getSendResult() {
        return sendResult;
    }

    public void setSendResult(Integer sendResult) {
        this.sendResult = sendResult;
    }

    public Integer getBusinessType() {
        return businessType;
    }

    public void setBusinessType(Integer businessType) {
        this.businessType = businessType;
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public Integer getSendTimes() {
        return sendTimes;
    }

    public void setSendTimes(Integer sendTimes) {
        this.sendTimes = sendTimes;
    }

    public String getFailMsg() {
        return failMsg;
    }

    public void setFailMsg(String failMsg) {
        this.failMsg = failMsg;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getPlanPushTime() {
        return planPushTime;
    }

    public void setPlanPushTime(Date planPushTime) {
        this.planPushTime = planPushTime;
    }

    public Date getRealPushTime() {
        return realPushTime;
    }

    public void setRealPushTime(Date realPushTime) {
        this.realPushTime = realPushTime;
    }

    @Override
    public String toString() {
        return "WxmsgPush{" +
        "id=" + id +
        ", openid=" + openid +
        ", name=" + name +
        ", phone=" + phone +
        ", msg=" + msg +
        ", status=" + status +
        ", templateId=" + templateId +
        ", jumpUrl=" + jumpUrl +
        ", sendResult=" + sendResult +
        ", businessType=" + businessType +
        ", businessId=" + businessId +
        ", sendTimes=" + sendTimes +
        ", failMsg=" + failMsg +
        ", planPushTime=" + planPushTime +
        ", realPushTime=" + realPushTime +
        "}";
    }
}
